# -*- coding: utf-8 -*-

"""Unimail
@version: 0.14
@license: GPL 3.0 (see "license" file)
@author: Jose A. Jimenez
@contact: jajimc@gmail.com"""

import signal

class TimeoutException(Exception):
    pass
    
#class OperationCanceledException(Exception):
#    pass
    
class AuthenticationException(Exception):
    pass
    
class NoDataException(Exception):
    pass
    
def process_timeout(sigNum, frame):
    """Throws a timeout exception to force the closure of a function that is taking too long to finish.
    @raise TimeoutException: Automatically thrown"""
    raise TimeoutException()
